<template>
  <div class="voice">
    <Dialogue mode="voice" @open-basicdialog="openDialog"></Dialogue>
    <BasicDialog v-model="isDialogVisible" @clear="clear" />
  </div>
</template>
<script setup lang="ts">
import { localStorageUtil } from "@/utils/localStorageUtil";
import { ref, onMounted, onUnmounted } from "vue";
const isDialogVisible = ref(false);
const openDialog = () => {
  isDialogVisible.value = true;
};
const clear = () => {
  console.log("点击保存  清空对话数据");
  localStorageUtil.remove("messages");
};
</script>
<style lang="scss" scoped>
.voice {
}
</style>
